<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>jinja demo {{foo}}</title>
</head>
<body>

<h1>{{name}}</h1>
<!--循环-->
{% for n in numbers %}
    <span class="number">{{ n }}</span>
{% endfor %}
<!--循环+对象/字典访问-->
<div>
    {% for u in users%}
        <div class="user-cell">
            <span>{{u.name}}</span>
            <span>{{u.id}}</span>
        </div>
    {% endfor %}
</div>
</body>
</html>